<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cutex: C:/Users/SHold/Documents/Projekte/libs/cutex/include/qxapplication.h Quellcode</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">cutex
   </div>
   <div id="projectbrief">cute Qt extensions</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Erzeugt von Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Suchen','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Suchen');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qxapplication_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qxapplication.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***********************************************************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">** Copyright (C) 2016-2021 Partsoft UG (haftungsbeschränkt)</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Contact: https://www.partsoft.de/index.php/kontakt</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** This file is part of cutex</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">** cutex is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">** License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** version.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** cutex is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">** You should have received a copy of the GNU Lesser General Public License along with cutex. If not, see</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">** http://www.gnu.org/licenses.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">***********************************************************************************************************************/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef QXAPPLICATION_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define QXAPPLICATION_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;cutex.h&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;qxlogger.h&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span>cutex {</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">class </span>QxApplication;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">extern</span> QxApplication *qxApp;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classcutex_1_1_qx_application.html">   38</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcutex_1_1_qx_application.html">QxApplication</a> : <span class="keyword">public</span> QApplication</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="classcutex_1_1_qx_application.html#a6efcbd6c83ec1483f9ee4025c88ea252">QxApplication</a>(<span class="keywordtype">int</span> &amp;argc, <span class="keywordtype">char</span> **argv);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="classcutex_1_1_qx_logger.html">QxLogger</a>* <a class="code" href="classcutex_1_1_qx_application.html#ad6813d5c6b559c7c4c6106604a5710d5">logger</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_application.html#ab90d86662a75f38d20da9dfa34f3ee84">setLogger</a>(<a class="code" href="classcutex_1_1_qx_logger.html">QxLogger</a> *<a class="code" href="classcutex_1_1_qx_application.html#ad6813d5c6b559c7c4c6106604a5710d5">logger</a>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_application.html#afff778136f591d43a0516c6a8cdf17ec">setFieldButtonHotkey</a>(Qt::Key key);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcutex_1_1_qx_application.html#a696a26e9916b9206ee6343b29f45413e">fieldButtonHotkey</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classcutex_1_1_qx_application.html#a5f065d9037789924d2c9826600e09502">addTranslator</a>(<span class="keyword">const</span> QString &amp;name, <span class="keyword">const</span> QString &amp;locale = QString());</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_application.html#a44f38b4ebe336e71712b2512e6c551d3">changeLanguage</a>(<span class="keyword">const</span> QString &amp;locale);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classcutex_1_1_qx_application.html#acbf3bccf356d93be8f5069033e04988d">setTranslationsPath</a>(<span class="keyword">const</span> QString &amp;path);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_application.html#abd162a3ea41b76d178950c2d43ef689e">changeTheme</a>(<span class="keyword">const</span> QString &amp;theme);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classcutex_1_1_qx_application.html#a2d7519da4078c7155329e630675885cf">setThemesPath</a>(<span class="keyword">const</span> QString &amp;path);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">static</span> QStringList <a class="code" href="classcutex_1_1_qx_application.html#a5804dfc3e0e8b796ae98456a9f82fc25">themes</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="classcutex_1_1_qx_logger.html">QxLogger</a> *m_logger;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    Qt::Key m_fieldButtonHotkey;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    QMap&lt;QString, QTranslator*&gt; m_translators;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">static</span> QString m_translationsPath;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keyword">static</span> QString m_themesPath;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordtype">void</span> registerStatics() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">bool</span> loadTranslation(QTranslator *translator, <span class="keyword">const</span> QString &amp;fileName);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;};</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// QXAPPLICATION_H</span></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html"><div class="ttname"><a href="classcutex_1_1_qx_application.html">cutex::QxApplication</a></div><div class="ttdoc">Die Klasse QxApplication erweitert QApplication um cutex-spezifische Features.</div><div class="ttdef"><b>Definition:</b> qxapplication.h:39</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_a2d7519da4078c7155329e630675885cf"><div class="ttname"><a href="classcutex_1_1_qx_application.html#a2d7519da4078c7155329e630675885cf">cutex::QxApplication::setThemesPath</a></div><div class="ttdeci">static bool setThemesPath(const QString &amp;path)</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:188</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_a44f38b4ebe336e71712b2512e6c551d3"><div class="ttname"><a href="classcutex_1_1_qx_application.html#a44f38b4ebe336e71712b2512e6c551d3">cutex::QxApplication::changeLanguage</a></div><div class="ttdeci">void changeLanguage(const QString &amp;locale)</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:138</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_a5804dfc3e0e8b796ae98456a9f82fc25"><div class="ttname"><a href="classcutex_1_1_qx_application.html#a5804dfc3e0e8b796ae98456a9f82fc25">cutex::QxApplication::themes</a></div><div class="ttdeci">static QStringList themes()</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:201</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_a5f065d9037789924d2c9826600e09502"><div class="ttname"><a href="classcutex_1_1_qx_application.html#a5f065d9037789924d2c9826600e09502">cutex::QxApplication::addTranslator</a></div><div class="ttdeci">bool addTranslator(const QString &amp;name, const QString &amp;locale=QString())</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:114</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_a696a26e9916b9206ee6343b29f45413e"><div class="ttname"><a href="classcutex_1_1_qx_application.html#a696a26e9916b9206ee6343b29f45413e">cutex::QxApplication::fieldButtonHotkey</a></div><div class="ttdeci">int fieldButtonHotkey() const</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:106</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_a6efcbd6c83ec1483f9ee4025c88ea252"><div class="ttname"><a href="classcutex_1_1_qx_application.html#a6efcbd6c83ec1483f9ee4025c88ea252">cutex::QxApplication::QxApplication</a></div><div class="ttdeci">QxApplication(int &amp;argc, char **argv)</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:43</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_ab90d86662a75f38d20da9dfa34f3ee84"><div class="ttname"><a href="classcutex_1_1_qx_application.html#ab90d86662a75f38d20da9dfa34f3ee84">cutex::QxApplication::setLogger</a></div><div class="ttdeci">void setLogger(QxLogger *logger)</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:80</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_abd162a3ea41b76d178950c2d43ef689e"><div class="ttname"><a href="classcutex_1_1_qx_application.html#abd162a3ea41b76d178950c2d43ef689e">cutex::QxApplication::changeTheme</a></div><div class="ttdeci">void changeTheme(const QString &amp;theme)</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:164</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_acbf3bccf356d93be8f5069033e04988d"><div class="ttname"><a href="classcutex_1_1_qx_application.html#acbf3bccf356d93be8f5069033e04988d">cutex::QxApplication::setTranslationsPath</a></div><div class="ttdeci">static bool setTranslationsPath(const QString &amp;path)</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:151</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_ad6813d5c6b559c7c4c6106604a5710d5"><div class="ttname"><a href="classcutex_1_1_qx_application.html#ad6813d5c6b559c7c4c6106604a5710d5">cutex::QxApplication::logger</a></div><div class="ttdeci">QxLogger * logger() const</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:70</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_application_html_afff778136f591d43a0516c6a8cdf17ec"><div class="ttname"><a href="classcutex_1_1_qx_application.html#afff778136f591d43a0516c6a8cdf17ec">cutex::QxApplication::setFieldButtonHotkey</a></div><div class="ttdeci">void setFieldButtonHotkey(Qt::Key key)</div><div class="ttdef"><b>Definition:</b> qxapplication.cpp:93</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_logger_html"><div class="ttname"><a href="classcutex_1_1_qx_logger.html">cutex::QxLogger</a></div><div class="ttdoc">Mit der Klasse QxLogger können Einträge in eine Logdatei geschrieben werden.</div><div class="ttdef"><b>Definition:</b> qxlogger.h:43</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><b>qxapplication.h</b></li>
    <li class="footer">Erzeugt von <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
